/**
 * 数据库信息
 *
 * @author yubaoshan
 * @date 2020/8/26 00:17
 */
import { axios } from '@/utils/request'

/**
 * 查询列表
 *
 * @author yubaoshan
 * @date 2020/8/26 00:17
 */
export function getActivity(parameter) {
  return axios({
    url: '/activity/list',
    method: 'get',
    params: parameter
  })
}
export function getActivityDetail(parameter) {
  return axios({
    url: '/activity/getUpdateActivityList',
    method: 'get',
    params: parameter
  })
}
export function addActivity(data) {
  return axios({
    url: '/activity/add',
    method: 'post',
    data: data
  })
}
export function editActivity(data){
  return axios({
      url:'/activity/edidActivity',
      method:'post',
      data:data
  })
}
export function removeItem(params){
  return axios({
    url:'/activity/activityDetail/remove',
    method:'get',
    params:params
  })
}
export function search(params){
  return axios({
    url:'/activity/getFuzzyQueryActivity/list',
    method:'get',
    params:params
  })
}
export function searchType(params){
  return axios({
      url:'/activity/getActivityItmeProductList',
      method:'get',
      params:params
  })
}
export function detail(params){
  return axios({
    url:'/activity/activityDetail/list',
    method:'get',
    params:params
  })
}